<template>
  <div>
      <van-button type="primary" @click="fh" class="fh"
          >返回</van-button
        >
    <h2>商品标题：{{ $route.query.title }}</h2>
    <h2>商品价格：{{ $route.query.price }}</h2>
  </div>
</template>
<script>
export default {
  data() {
    return {
      
    }
  },
  methods:{
    fh(){
      this.$router.push({path:"/home"})
    }
  }
}
</script>
<style  scoped>
h2{
  text-align: center;
}
.fh{
 margin:20px;
}
</style>